<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>解析navigator对象</title>

    <script type="text/javascript">

        let names = Object.getOwnPropertyNames( Navigator );
        console.log( names );

        names = Object.getOwnPropertyNames( Navigator.prototype );
        console.log( names );

        console.log( '- - - '.repeat(5) );

        console.log( navigator instanceof Navigator );

        names = Object.getOwnPropertyNames( navigator );
        console.log( names );

        console.log( '- - - '.repeat(5) );

        console.log( '系统平台的类型: ' , navigator.platform );
        console.log( 'product: ' , navigator.product );
        console.log( 'appName: ' , navigator.appName );
        console.log( 'appCodeName: ' , navigator.appCodeName );
        console.log( 'appVersion: ' , navigator.appVersion );
        
        console.log( 'userAgent: ' , navigator.userAgent );

    </script>

</head>
<body>
    
</body>
</html>